package com.wego.bean.base;

import com.wego.constant.WegoConstant;
import lombok.AllArgsConstructor;
import lombok.NoArgsConstructor;
import lombok.Setter;
import lombok.ToString;

/**
 *
 * @author hc
 * @date 2025-09-06 10:19
 */
@Setter
@NoArgsConstructor
@AllArgsConstructor
@ToString
public class BaseQuery {
    /**
     * 页码
     */
    private Integer pageNum;
    /**
     * 页面大小
     */
    private Integer pageSize;

    public Integer getPageNum() {
        return this.pageNum == null ? 1 : this.pageNum;
    }

    public Integer getPageSize() {
        return this.pageSize == null ? WegoConstant.PAGE_SIZE : this.pageSize;
    }
}
